/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.wechat;

import java.util.List;

import com.idenger.common.service.CrudService;
import com.idenger.modules.edu.entity.wechat.EduWechatUser;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.modules.edu.dao.wechat.EduWechatUserDao;

/**
 * 微信信息Service
 * @author 兰正军
 * @version 2017-12-04
 */
@Service
@Transactional(readOnly = true)
public class EduWechatUserService extends CrudService<EduWechatUserDao, EduWechatUser> {

	public EduWechatUser get(String id) {
		return super.get(id);
	}
	
	public List<EduWechatUser> findList(EduWechatUser eduWechatUser) {
		return super.findList(eduWechatUser);
	}
	
	public Page<EduWechatUser> findPage(Page<EduWechatUser> page, EduWechatUser eduWechatUser) {
		return super.findPage(page, eduWechatUser);
	}
	
	@Transactional(readOnly = false)
	public void save(EduWechatUser eduWechatUser) {
		super.save(eduWechatUser);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduWechatUser eduWechatUser) {
		super.delete(eduWechatUser);
	}
	
	public List<EduWechatUser> getWechatinfo(EduWechatUser eduWechatUser){
		return dao.getWechatinfo(eduWechatUser);
	}
}